package com.jk.smartelderlycare.interfaces;

import com.jk.smartelderlycare.dto.SysRole;
import com.jk.smartelderlycare.dto.SysUser;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/7 11:28
 * @Version v1.0
 */
public interface SysRoleServiceApi {
    /**
     * @description: 角色列表查询
     * @param: [sysRole]
     * @return: java.util.List<com.jk.smartelderlycare.dto.SysRole>
     * @author hhk
     * @date: 2024/11/7 11:31
     */
    @PostMapping(value ="sysRole/findSysSysRolePaginationList")
    public PagedResponse<SysRole> findSysSysRolePaginationList(@RequestBody SysRole sysRole, @RequestParam(value = "pageNum")Integer pageNum,@RequestParam(value = "pageSize") Integer pageSize);
    /**
     * @description: 新增角色列表
     * @param: [sysRole]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 11:32
     */
    @PostMapping(value = "sysRole/addSysRole")
    public void addSysRole(@RequestBody SysRole sysRole);
    /**
     * @description: 根据id删除一条信息
     * @param: [roleId]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 11:34
     */
    @DeleteMapping(value = "sysRole/deleteSysRoleById")
    public void deleteSysRoleByRoleId(@RequestParam(value = "roleId") Long roleId);

    /**
     * @description: 根据id回显一条数据
     * @param: [roleId]
     * @return: com.jk.smartelderlycare.dto.SysRole
     * @author hhk
     * @date: 2024/11/7 11:36
     */
    @GetMapping(value = "sysRole/findSysRoleByRoleId")
    public SysRole findSysRoleByRoleId(@RequestParam(value = "roleId") Long roleId);
    /**
     * @description: 修改角色列表
     * @param: [sysRole]
     * @return: void
     * @author hhk
     * @date: 2024/11/7 11:45
     */
    @PutMapping(value = "sysRole/updateSysRole")
    public void updateSysRole(@RequestBody SysRole sysRole);

    /**
     * @description: 状态修改
     * @param: [sysUser]
     * @return: void
     * @author hhk
     * @date: 2024/11/6 20:22
     */
    @PostMapping(value = "/sysRole/updateStatusById")
    public void updateStatusById(@RequestBody SysRole sysRole);

}
